package org.tokaf.rater;

/**
 * <p>WeightRater is abstract class. Its subclasses are supposed to atribute to each column a certain constant weight. 
 * These weight are stored in values field.</p>
 * <p>Copyright (c) 2006</p>
 * @author Alan Eckhardt
 * @version 1.0
 */
public abstract class WeightRater extends Rater {
	// Weights of fields
	protected double values[];

	public WeightRater() {
	}

	public void init(String fields[], double values[]) {
		this.fields = (String[]) fields.clone();
		this.values = (double[]) values.clone();
	}

	public WeightRater(String fields[], double values[]) {
		init(fields, values);
	}
}
